package com.fs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.pojo.WhWarehousing;
import com.fs.vo.Condition;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 入库单服务层
 */


public interface WhWarehousingService {
    /**
     * 根据id删除入库单
     *
     * @param warehousingEntryId
     */
    void deleteWh(int warehousingEntryId);

    /**
     * 新增入库单
     */
    void addWh(WhWarehousing whWarehousing);

    /**
     * 根据id修改入库单
     *
     * @param whWarehousing
     */
    void changeById(WhWarehousing whWarehousing);

    /**
     * 根据id查询单个入库单
     *
     * @param warehousingEntryId
     * @return
     */
    WhWarehousing selectOneById(int warehousingEntryId);

    /**
     * 查询所有入库单
     * @return
     */
    List<WhWarehousing> selectAll();

    PageInfo<WhWarehousing> selectPage(Condition<WhWarehousing> condition);
}
